<%@ include file="/common/taglibs.jsp"%>
<script>
jQuery(document).ready(function(){
	jQuery("#section").validate();
});
</script>


<div style="padding:5px;" align="center">
	<!-- <span class="head-dec">Enter Section Details</span> --><br/><br/>
	<s:form id="section" name="section" action="saveOrUpdateSection" method="post">
	 <table border="0">
	 	<tr>
	 		<td class="inputField" nowrap="nowrap">
     			Class Name <label style="color:red;">*</label>
     		</td>
			<td class="inputTextBox">
				<s:select  name="classYear" id="saveOrUpdateSection_classYear" emptyOption="true" list="classYears" listKey="id" listValue="name" value="%{section.getClassYear().getId()}" cssStyle="width:200px" />
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>	
     	<tr>
     		<td class="inputField" nowrap="nowrap">
     			Section Name <label style="color:red;">*</label>
     		</td>
			<td class="inputTextBox">
				<s:textfield name="section.sectionName"  id="saveOrUpdateSection_sectionName" style="width:250px;" required="true" cssClass="required"/>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td class="inputField" nowrap="nowrap">
     			Status
     		</td>
			<td class="inputTextBox">
				<s:radio  name="section.status" id="saveOrUpdateSection_status" list="#{'Active':'Active','InActive':'InActive'}"  value="%{section.getStatus()}" />
			</td>
		</tr>		
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td colspan="2">
				<s:reset value="Clear" id="saveOrUpdateSection_0" cssClass="button-gray" theme="simple"/>
				<s:if test="section.id == '' || section.id == null">
					<s:submit value="Create" id="saveOrUpdateSection_0" cssClass="button-green" theme="simple" />
				</s:if>
				<s:else>
					<s:submit value="Update" id="saveOrUpdateSection_0" cssClass="button-green" theme="simple" />
				</s:else>
				<input type="button" value="List" id="saveOrUpdateSection_0" class="button-gray" onclick="javascript:showLists('/showSectionList');" />
			</td>
		</tr>	
	</table>
	<s:hidden id="id" name="section.id"></s:hidden>	
	</s:form>
</div> 
